package cn.edu.zafu.bigdata.lyq.work4;

public abstract class Shape {
    public abstract  double area();
    public abstract  double perimeter();
    public final void display(){
        System.out.println("Shape type:" + this.getClass()
        +"    Area:" + area()
        +"    Perimeter:" + perimeter());
    }

}
